package com.wzu.pojo;

public class Reader {
    private int reader_id;
    private Integer userId; // 新增：关联User表的外键字段
    private String name;
    private String gender;
    private int age;
    private String contact_info;
    private String id_type;
    private String id_number;
    private int borrow_limit;
    private int borrow_period;
    private boolean can_renew;
    private String role; // 新增：角色字段

    // 构造函数、其他方法保持不变...

    // 新增：role 的 getter 和 setter
    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
    // 新增：无参构造函数
    public Reader() {}

    // 新增：带必要参数的构造函数
    public Reader(Integer userId, String name, String gender) {
        this.userId = userId;
        this.name = name;
        this.gender = gender;
    }

    // Getter 和 Setter 方法
    public int getReader_id() {
        return reader_id;
    }

    public void setReader_id(int reader_id) {
        this.reader_id = reader_id;
    }

    // 新增：userId 的 Getter 和 Setter
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getContact_info() {
        return contact_info;
    }

    public void setContact_info(String contact_info) {
        this.contact_info = contact_info;
    }

    public String getId_type() {
        return id_type;
    }

    public void setId_type(String id_type) {
        this.id_type = id_type;
    }

    public String getId_number() {
        return id_number;
    }

    public void setId_number(String id_number) {
        this.id_number = id_number;
    }

    public int getBorrow_limit() {
        return borrow_limit;
    }

    public void setBorrow_limit(int borrow_limit) {
        this.borrow_limit = borrow_limit;
    }

    public int getBorrow_period() {
        return borrow_period;
    }

    public void setBorrow_period(int borrow_period) {
        this.borrow_period = borrow_period;
    }

    public boolean isCan_renew() {
        return can_renew;
    }

    public void setCan_renew(boolean can_renew) {
        this.can_renew = can_renew;
    }

    public void setUser_id(int userId) {
    }
}